$.extend({ loading: {} });
$.extend($.loading, {
  init: function () {},
  initPage() {
    var loadingDom = `
        <div class="spinner">
          <div class="rect1"></div>
          <div class="rect2"></div>
          <div class="rect3"></div>
          <div class="rect4"></div>
          <div class="rect5"></div>
        </div>
      `;
    var shapeDom = `<div class="h5-loading-shape"></div>`;
    $("body").append(loadingDom);
    $("body").append(shapeDom);
  },
  open() {
    this.initPage();
  },
  close() {
    $(".spinner").remove();
    $(".h5-loading-shape").remove();
  },
});
